package com.hsc.mvc.tag;

/**
 * @author
 * @date 2025-06-02
 * @Description 参数绑定器标签类
 */
public class ParamBinderTag {
    private String classStr;
    private Class binderClass;


    public String getClassStr() {
        return classStr;
    }

    public void setClassStr(String classStr) {
        this.classStr = classStr;
        // 转为Class 对象
        try {
            Class<?> aClass = Class.forName(classStr);
            setBinderClass(aClass);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }

    public Class getBinderClass() {
        return binderClass;
    }

    public void setBinderClass(Class binderClass) {
        this.binderClass = binderClass;
    }
}
